Skip to main content

GET Live Video Active Screen History

Overview


The table below provides key details about the GET method for retrieving active screen history of a live video.

GET Live Video Active Screen History
MethodGET
URL or Endpoint/api/live-videos/projectId/active-screen-history
HeadersAuthorization
ParametersvideoId,startDate, endDate, projectId
BodyNot applicable

The description of the URL parameter is as follows:

videoId URL Parameter
URL Parameter NamevideoId
MandatoryYes
Typestring
DescriptionUnique Id of the live video.
startDate URL Parameter
URL Parameter NamestartDate
MandatoryNo
Typestring($date-time)
DescriptionStart date and time when the live video begins streaming.
endDate URL Parameter
URL Parameter NameendDate
MandatoryNo
Typestring($date-time)
DescriptionEnd date and time when an action is triggered
projectId URL Parameter
URL Parameter NameprojectId
MandatoryYes
Typestring
DescriptionUnique Id of the project

Request Body

This method does not require the request body.

Response

{
"success": true,
"errors": [
"string"
],
"messages": [
"string"
],
"result": [
{
"name": "string",
"switchStartTime": "2024-11-13T13:42:45.075Z",
"switchEndTime": "2024-11-13T13:42:45.075Z"
}
],
"resultInfo": "string",
"statusCode": 0
}

Information about the fields that appear when you receive the response are displayed in the table below.

Field NameTypeDescription
successboolIf the response is successful, it will return true. Otherwise, it will return false.
errorsarray[]Indicates if there was an error.
messagesarray[]Returns the response message from the back-end.
resultarray[] of objectsContains the result data, such as name, switchStartTime, and switchEndTime.
namestringName of the result.
switchStartTimestring (ISO 8601 date format)The start time of the switch event.
switchEndTimestring (ISO 8601 date format)The end time of the switch event.
resultInfostringReturns extra information about the result.
statusCodeinteger($int32)Returns the HTTP Status Code.

If the action is successful, the service sends back an HTTP 200 or 201 response.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code 400: Bad Request

  • HTTP Status Code 401: Unauthorized

  • HTTP Status Code 403: Forbidden

  • HTTP Status Code 404: Result Not Found

  • HTTP Status Code 500: Internal Server Error

  • HTTP Status Code 503: Backend Fetch Failed